package top.yifengxiner.blockchain.service;

import top.yifengxiner.blockchain.pojo.entity.Educator;
import top.yifengxiner.blockchain.pojo.vo.BRegisterBody;
import top.yifengxiner.common.core.pojo.entity.SysUser;

public interface EducatorService
{
    /**
     * 通过用户名获得用户信息
     * @return
     */
    public SysUser getIdByName(String name);

    /**
     * 通过教育者ID取得教育者额外信息
     * @param id
     * @return
     */
    public Educator getEducatorById(Long id);

    /**
     * 注册教育者的个人信息
     */
    public int setEducator(BRegisterBody registerBody);

    /**
     * 通过name获取Educator
     */
    public Educator getEducatorByName(String name);
}
